<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<s:layout-definition>
    <!DOCTYPE html>
    <html lang="${pageContext.request.locale}">
        <head>
            <title><f:message key="${titlekey}"/></title>

            <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/style.css" />
            <s:layout-component name="header"/>
        </head>
        <body>
            <div id="userbar">
                <div class="userbar-inner">
                    <nav>

                        <sec:authorize ifNotGranted="ROLE_HERO, ROLE_ADMINISTRATOR">
                            <a <s:link href="login.jsp"><f:message key="index.login"/></s:link></a>
                            <a <s:link href="registration.jsp"><f:message key="index.registerHero"/></s:link></a>
                            <a <s:link href="registrationAdmin.jsp"><f:message key="index.registerAdmin"/></s:link></a>
                        </sec:authorize>

                                <sec:authorize ifAnyGranted="ROLE_HERO, ROLE_ADMINISTRATOR">
                                    <a <s:link href="/j_spring_security_logout"><f:message key="index.logout"/></s:link></a>
                            </sec:authorize>
                    </nav>
                </div>
            </div>

                <div class="page ">
                    <div class="header-wrap">
                        <header class="container">
                            <nav class="main">
                                <a <s:link href="/index.jsp"><f:message key="navigation.index"/></s:link></a>
                                <ul class="navmenu nav">
                                    <li>
                                        <a <s:link beanclass="cz.muni.fi.pa165.dundd.web.AdminActionBean"><f:message key="navigation.admin"/></s:link></a>
                                    </li>
                                    <li>
                                        <a <s:link beanclass="cz.muni.fi.pa165.dundd.web.HeroActionBean"><f:message key="navigation.hero"/></s:link></a>
                                    </li>
                                    <li>
                                        <a <s:link beanclass="cz.muni.fi.pa165.dundd.web.RoleActionBean"><f:message key="navigation.role"/></s:link></a>
                                    </li>
                                    <li>
                                        <a <s:link beanclass="cz.muni.fi.pa165.dundd.web.TroopActionBean"><f:message key="navigation.troop"/></s:link></a>
                                    </li>
                                </ul>
                            </nav>
                        </header>
                    </div>
                    <div class="page-wrap">
                        <div class="pagecontent container">
                            <div class="one column">
                                <section>
                                    <div class="relative-wrap">                                        

                                    <s:messages/>
                                    <s:layout-component name="body"/>

                                </div>
                            </section>
                        </div>
                    </div>
                </div>
                <div class="footer-wrap">
                    <footer class="">
                        <div class="legal_copy"><p>FI MUNI Java Project</p>
                        </div>
                    </footer>
                </div>
            </div>

        </body>
    </html>
</s:layout-definition>




